home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
bit
/
src
/
ulib
/
read2msb.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
528b
|
21 lines
/***********************************************************************
* $Id: read2msb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $
*
*. Copyright(c) 1993,1994 by T.C. Zhao
* All rights reserved.
*.
* Read 2bytes MSB first
***********************************************************************/
#if !defined(lint) && defined(F_ID)
char *id_r2msb = "$Id: read2msb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $";
#endif
#include <stdio.h>
#include "ulib.h"
int
get2MSBF(FILE * fp)
{
return (getc(fp) << 8) | getc(fp);
}